<template>
  <div>
    <table>
      <tr>
        <th>学生学号</th>
        <th>课程</th>
        <th>签到时间</th>
        <th>是否签到</th>
      </tr>
      <tr v-for="re in reachTeacherList">
        <td>{{re.reachStudentId}}</td>
        <td>{{re.reachCourse}}</td>
        <td>{{re.reachDate}}</td>
        <td>已签到</td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "TeacherReachHistory",
  created() {
    this.$ajax.get(base_url + "teacher/list_reach_teacher",{
      params : {
        teacherName : this.$route.query.name
    }
    }).then(response => {
      this.reachTeacherList = response.data.data
    })
  },
  data() {
    return {
      reachTeacherList : ""
    }
  }
}
</script>

<style scoped>

table,th,td{
  border:1px solid black;
}
table{
  width:70%;
  margin: auto;
}
th{
  height:50px;
  text-align: center;
  background-color: #E7E7E7;
  font-size: 30px;
}
td{
  height:30px;
  width: 100px;
  font-family: "宋体";
  font-size: 20px;
  text-align:center;
  background-color: gainsboro;
}

</style>